﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PrintDirection.aspx.cs" Inherits="PrintPages_PrintDirection" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body onload="window.print()">
    <asp:SqlDataSource ID="sdsDirectionPatients" runat="server" ConnectionString="<%$ ConnectionStrings:ClinicConnectionString %>"
        SelectCommand="up_DirectionAndPatientGetByDirectionNumber" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:QueryStringParameter Name="DirectionNumber" QueryStringField="DirectionNumber"
                Type="String" />
            <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
            <asp:QueryStringParameter Name="DoctorID" QueryStringField="DoctorID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <form runat="server" id="frmPrint">
        <asp:FormView ID="fvPatientData" runat="server" DataSourceID="sdsDirectionPatients">
            <HeaderTemplate>
                <table>
                    <tr>
                        <td colspan="6">
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Преглед №
                            <asp:Label ID="txtNumber" runat="server" Text='<%# Eval("DirectionNumber") %>'></asp:Label>
                        </td>
                        <td>
                        </td>
                        <td>
                            Дата:
                        </td>
                        <td>
                            <asp:Label ID="txtDate" runat="server" Text='<%# DateTime.Now.ToShortDateString() %>'></asp:Label></td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </HeaderTemplate>
            <ItemTemplate>
                <table>
                    <tr>
                        <td colspan="6" align="center">
                            <br />
                            <br />
                            <b>АНАМНЕСТИЧНИ ДАННИ</b>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <br />
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <b><u>Лични данни</u></b>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td colspan="2">
                            <b><u>Професионални данни</u></b>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <br />
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <b>ЕГН:</b>
                            <asp:Label ID="lblEGN" runat="server" Text='<%# Eval("EGN")%>'></asp:Label>
                        </td>
                        <td>
                            <b>Години:</b>
                            <asp:Label ID="lblAge" runat="server" Text='<%# Eval("Age")%>'></asp:Label>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                            <b>Професия:</b>
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("Profession")%>'></asp:Label>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <b>Име:</b>
                            <asp:Label ID="Label2" runat="server" Text='<%# Eval("Name")%>'></asp:Label>
                            &nbsp;&nbsp;
                            <asp:Label ID="Label3" runat="server" Text='<%# Eval("MiddleName")%>'></asp:Label>&nbsp;&nbsp;
                            <asp:Label ID="Label4" runat="server" Text='<%# Eval("LastName")%>'></asp:Label>
                        </td>
                        <td>
                        </td>
                        <td colspan="2">
                            <b>Работно място:</b>
                            <asp:Label ID="Label5" runat="server" Text='<%# Eval("CurrentJob")%>'></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <b>Адрес:</b>
                            <asp:Label ID="Label6" runat="server" Text='<%# Eval("City")%>'></asp:Label>
                        </td>
                        <td>
                        </td>
                        <td>
                            <b>Трудов стаж /общ/:</b> .......
                        </td>
                        <td>
                            <b>/настояща професия/:</b> .......
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <b>Пол:</b> .... <b>Гражданство:</b> ................. <b>Тел:</b>
                            <asp:Label ID="Label10" runat="server" Text='<%# Eval("telephone")%>'></asp:Label>
                        </td>
                        <td>
                        </td>
                        <td colspan="2">
                            <b>Професионални вредности:</b> &nbsp;&nbsp; ..............................
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <b><u>Рискови фактори на живот</u></b></td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <b>Тютюнопушене</b> - да / не
                            <br />
                            бр./ден .....</td>
                        <td>
                            <b>Алкохол</b> - да / не</td>
                        <td>
                        </td>
                        <td>
                            <b>Двиг. активност</b> - да / не</td>
                        <td>
                            <b>Псих. напрежение</b> - да / не</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <b>Фамилна обремененост</b>
                        </td>
                        <td colspan="2">
                            <b>Минали заболявания</b>
                        </td>
                        <td colspan="2" align="center">
                            <b>Хронични заболявания</b>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            майка:...............................
                        </td>
                        <td colspan="2">
                            ......................................
                        </td>
                        <td colspan="2" align="center">
                            .........................................
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            баща:.................................
                        </td>
                        <td colspan="2">
                            ......................................
                        </td>
                        <td colspan="2" align="center">
                            .........................................
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            брат/сестра:......................
                        </td>
                        <td colspan="2">
                            ......................................
                        </td>
                        <td colspan="2" align="center">
                            .........................................
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6" align="center">
                            <b>МЕДИЦИНСКИ ПРЕГЛЕД</b></td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            ТЕРАПЕВТ..................................................................................................................................................................................</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            ......................................................................................................................................................................................................</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            ......................................................................................................................................................................................................</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            ......................................................................................................................................................................................................</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            ......................................................................................................................................................................................................</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            НЕВРОЛОГ.................................................................................................................................................................................</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            ......................................................................................................................................................................................................</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            ОФТАЛМОЛОГ..........................................................................................................................................................................</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            ......................................................................................................................................................................................................</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            УНГ..............................................................................................................................................................................................</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            ......................................................................................................................................................................................................</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            ХИРУРГ......................................................................................................................................................................................</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            ......................................................................................................................................................................................................</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            ОРТОПЕД....................................................................................................................................................................................</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            ......................................................................................................................................................................................................</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            КАРДИОЛОГ..............................................................................................................................................................................</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            ......................................................................................................................................................................................................</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            АЛЕРГОЛОГ...............................................................................................................................................................................</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            ......................................................................................................................................................................................................</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6" align="center">
                            <b>ЛАБОРАТОРНИ ИЗСЛЕДВАНИЯ</b></td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            Hb -
                        </td>
                        <td colspan="2">
                            Htc -
                        </td>
                        <td colspan="2">
                            Er -
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            West -
                        </td>
                        <td colspan="2">
                            Leuc -
                        </td>
                        <td colspan="2">
                            Thr -
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            Gl -
                        </td>
                        <td colspan="2">
                            mmol/l -
                        </td>
                        <td colspan="2">
                            Creat -
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            UAcid -
                        </td>
                        <td colspan="2">
                            Урина -
                        </td>
                        <td colspan="2">
                            Ro gr -
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <b><u>Заключение:</u></b></td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:FormView>
    </form>
</body>
</html>
